package com.tju.ocean_ecology_website.dto;

import lombok.Data;
import org.springframework.data.domain.PageRequest;

/**
 * 志愿者队伍查询DTO
 */
@Data
public class VolunteerTeamQueryDTO {
    private Integer page = 1;
    private Integer pageSize = 10;
    private Boolean mine = false;
    private String keyword;
    
    /**
     * 转换为PageRequest对象
     */
    public PageRequest toPageRequest() {
        return PageRequest.of(page - 1, pageSize);
    }
}
